package com.itheima.service;

import com.itheima.domian.Permission;
import com.itheima.domian.Role;

import java.util.List;

public interface IRoleService   {

   public List<Role> findAll() throws Exception;

   void save(Role role) throws Exception;

    Role findById(String roleId) throws  Exception;

    List<Permission> findOtherPermissions(String roleId) throws  Exception;

    void addRoleToPermission(String roleId, String[] permissionIds) throws Exception;
}
